{smcl}
{com}{sf}{ul off}{txt}{.-}
      name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\charl\Documents\Forecasting\2020 forecasts\Congress2020forecast.smcl
  {txt}log type:  {res}smcl
 {txt}opened on:  {res} 8 Sep 2020, 12:47:40

{com}. use "C:\Users\charl\Documents\Forecasting\2020 forecasts\Congress2020forecast.dta"

. tsset t
{res}{txt}{col 9}time variable:  {res}{col 25}t, 1 to 36
{txt}{col 17}delta:  {res}1 unit

{com}. regress HC Junepop INCOME MIDTERM

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        36
{txt}{hline 13}{c +}{hline 34}   F(3, 32)        = {res}    16.17
{txt}       Model {c |} {res} 15450.8407         3  5150.28023   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 10192.1315        32   318.50411   {txt}R-squared       ={res}    0.6025
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.5653
{txt}       Total {c |} {res} 25642.9722        35  732.656349   {txt}Root MSE        =   {res} 17.847

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}          HC{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}Junepop {c |}{col 14}{res}{space 2} .8342303{col 26}{space 2} .2403485{col 37}{space 1}    3.47{col 46}{space 3}0.002{col 54}{space 4} .3446563{col 67}{space 3} 1.323804
{txt}{space 6}INCOME {c |}{col 14}{res}{space 2} 4.887602{col 26}{space 2} 1.659464{col 37}{space 1}    2.95{col 46}{space 3}0.006{col 54}{space 4} 1.507384{col 67}{space 3} 8.267819
{txt}{space 5}MIDTERM {c |}{col 14}{res}{space 2}-29.09899{col 26}{space 2} 6.050868{col 37}{space 1}   -4.81{col 46}{space 3}0.000{col 54}{space 4} -41.4242{col 67}{space 3}-16.77377
{txt}{space 7}_cons {c |}{col 14}{res}{space 2}-45.52514{col 26}{space 2} 12.80673{col 37}{space 1}   -3.55{col 46}{space 3}0.001{col 54}{space 4} -71.6116{col 67}{space 3}-19.43869
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. estat dwatson

{txt}Durbin-Watson d-statistic({res}  4{txt},{res}    36{txt}) = {res} 1.874057

{com}. regress SC Junepop INCOME MIDTERM SEATSEXP

{txt}      Source {c |}       SS           df       MS      Number of obs   ={res}        36
{txt}{hline 13}{c +}{hline 34}   F(4, 31)        = {res}    17.04
{txt}       Model {c |} {res} 551.207644         4  137.801911   {txt}Prob > F        ={res}    0.0000
{txt}    Residual {c |} {res} 250.681245        31  8.08649177   {txt}R-squared       ={res}    0.6874
{txt}{hline 13}{c +}{hline 34}   Adj R-squared   ={res}    0.6470
{txt}       Total {c |} {res} 801.888889        35  22.9111111   {txt}Root MSE        =   {res} 2.8437

{txt}{hline 13}{c TT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{col 1}          SC{col 14}{c |}      Coef.{col 26}   Std. Err.{col 38}      t{col 46}   P>|t|{col 54}     [95% Con{col 67}f. Interval]
{hline 13}{c +}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{space 5}Junepop {c |}{col 14}{res}{space 2} .1324431{col 26}{space 2} .0382973{col 37}{space 1}    3.46{col 46}{space 3}0.002{col 54}{space 4} .0543352{col 67}{space 3}  .210551
{txt}{space 6}INCOME {c |}{col 14}{res}{space 2} .9100287{col 26}{space 2} .2712855{col 37}{space 1}    3.35{col 46}{space 3}0.002{col 54}{space 4} .3567382{col 67}{space 3} 1.463319
{txt}{space 5}MIDTERM {c |}{col 14}{res}{space 2}-2.365743{col 26}{space 2} .9679413{col 37}{space 1}   -2.44{col 46}{space 3}0.020{col 54}{space 4}-4.339873{col 67}{space 3} -.391614
{txt}{space 4}SEATSEXP {c |}{col 14}{res}{space 2}-.7049306{col 26}{space 2} .1097988{col 37}{space 1}   -6.42{col 46}{space 3}0.000{col 54}{space 4}-.9288667{col 67}{space 3}-.4809946
{txt}{space 7}_cons {c |}{col 14}{res}{space 2} 2.791233{col 26}{space 2} 2.665312{col 37}{space 1}    1.05{col 46}{space 3}0.303{col 54}{space 4}-2.644708{col 67}{space 3} 8.227173
{txt}{hline 13}{c BT}{hline 11}{hline 11}{hline 9}{hline 8}{hline 13}{hline 12}
{res}
{com}. estat dwatson

{txt}Durbin-Watson d-statistic({res}  5{txt},{res}    36{txt}) = {res} 1.860743

{com}. log close
      {txt}name:  {res}<unnamed>
       {txt}log:  {res}C:\Users\charl\Documents\Forecasting\2020 forecasts\Congress2020forecast.smcl
  {txt}log type:  {res}smcl
 {txt}closed on:  {res} 8 Sep 2020, 12:48:31
{txt}{.-}
{smcl}
{txt}{sf}{ul off}